<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>权限管理系统</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="./css/x-admin.css">
		
	</head>

	<body>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header header header-demo">
				<div class="layui-main">
					<div class="admin-logo-box">
						<a class="logo" href="login.html" title="logo">权限管理系统</a>
						<div class="larry-side-menu">
							<i class="fa fa-th-large" aria-hidden="true"></i>
						</div>
					</div>

					<ul class="layui-nav" lay-filter="">
						<li class="layui-nav-item">
							<a href="" title="消息">
								<i class="layui-icon" style="top: 1px;">&#xe63a;</i>
							</a>
						</li>
						<li class="layui-nav-item"><img src="./images/logo.png" class="layui-circle" style="border: 2px solid #A9B7B7;" width="35px" alt=""></li>
						<li class="layui-nav-item">
							<a href="javascript:;"><span id="spName"></span></a>
							<dl class="layui-nav-child">
								<!-- 二级菜单 -->
								<dd>
									<a href="#" id="logout">安全退出</a>
								</dd>
							</dl>
						</li>
						<li class="layui-nav-item x-index">
							<a href="/">前台首页</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="layui-side layui-bg-black x-side" style="left:0px;">
				<div class="layui-side-scroll">
					<ul id="nav_ul" class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
						<li class="layui-nav-item" style="height: 30px; text-align: center"> </li>
					</ul>
				</div>
			</div>
			<div class="layui-tab layui-tab-card site-demo-title x-main" lay-filter="x-tab" lay-allowclose="true" style="left: 200px;border-left: solid 2px #2299ee;">
				<ul class="layui-tab-title">
					<li class="layui-this welcome"> 我的桌面 <i class="layui-icon layui-unselect layui-tab-close">ဆ</i> </li>
				</ul>
				<div class="layui-tab-content site-demo site-demo-body">
					<div class="layui-tab-item layui-show">
						<iframe frameborder="0" src="./welcome.html" class="x-iframe"></iframe>
					</div>
				</div>
			</div>
			<div class="site-mobile-shade"> </div>
		</div>
		<script src="lib/layui/layui.js" charset="utf-8"></script>
		<script src="js/global.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/x-admin.js"></script>

		<script type="application/javascript">
			layui.use(["layer"], function() {
				var layer = layui.layer;
				var $ = layui.$;
				var userName = globalData.getCurUName();
				$("#spName").html(userName);

				$("#logout").click(function() {
					layer.confirm("确定要退出吗?", {
						icon: 3,
						title: "提示",
					}, function(index) {
						layui.close(index);
						globalData.setUserInfo(null, null, null);
						window.location.href = "login.html";
					}, function(index) {
						layui.close(index);
					});
				});
			});
		</script>
	</body>

</html>